// Decompiled by DJ v3.7.7.81 Copyright 2004 Atanas Neshkov  Date: 2007-9-15 18:53:50


// Source File Name:   hp.java

package com.zelix;

import java.util.Hashtable;


//            fh, dp, ep, mp, 
//            lt, tb, qy

public abstract class hp
{

    mp a;
    ep b;

    hp(mp mp1)
    {
        b = mp1.b;
        a = mp1;
    }

    final String a(fh fh1, String s, dp dp1, Hashtable hashtable, boolean flag, Hashtable hashtable1, Hashtable hashtable2, 
            Hashtable hashtable3, boolean flag1)
    {
        String s1 = dp1.b();
        String s2;
        dp dp2;
        do
        {
            s2 = a(fh1, dp1.d());
            dp2 = new dp(s2, s1);
        } while(!a(fh1, dp2, dp1, hashtable, hashtable1, hashtable2, hashtable3, flag1, flag));
        return s2;
    }

    public final String b(fh fh1, String s, dp dp1, Hashtable hashtable, boolean flag, Hashtable hashtable1, Hashtable hashtable2, 
            Hashtable hashtable3, boolean flag1)
    {
        String s1;
label0:
        {
            boolean flag2;
label1:
            {
                wu wu;
label2:
                {
                    flag2 = tb.b;
                    wu = null;
                    if(fh1.v())
                        wu = b.a(fh1, dp1);
                    if(wu == null)
                        break label1;
                    s1 = b.a(wu);
                    if(s1 != null)
                        break label0;
                    lt lt1 = b.b(s, dp1);
                    if(lt1 != null)
                    {
                        String s2 = lt1.j();
                        fh fh2 = fh.b(s2);
                        if(fh2 == null || !fh2.w())
                        {
                            s1 = null;
                            break label2;
                        }
                        s1 = a(fh1, s, dp1, hashtable, flag, hashtable1, hashtable2, hashtable3, flag1);
                        if(!flag2)
                            break label2;
                    }
                    s1 = a(fh1, s, dp1, hashtable, flag, hashtable1, hashtable2, hashtable3, flag1);
                }
                if(s1 == null)
                    break label0;
                b.a(wu, s1);
                if(!flag2)
                    break label0;
            }
            lt lt2 = b.b(s, dp1);
            if(lt2 != null)
            {
                s1 = a.a(lt2.j(), dp1);
                if(!flag2)
                    break label0;
            }
            s1 = a(fh1, s, dp1, hashtable, flag, hashtable1, hashtable2, hashtable3, flag1);
        }
        return s1;
    }

    public final String a(fh fh1, String s, dp dp1, Hashtable hashtable, Hashtable hashtable1, Hashtable hashtable2, Hashtable hashtable3, 
            boolean flag)
    {
        return a(fh1, s, dp1, hashtable, false, hashtable1, hashtable2, hashtable3, flag);
    }

    public abstract String a(fh fh1, String s, dp dp1, Hashtable hashtable, qy qy, boolean flag, Hashtable hashtable1, 
            Hashtable hashtable2, Hashtable hashtable3, boolean flag1);

    abstract String a(fh fh1, String s);

    final boolean a(fh fh1, dp dp1, dp dp2, Hashtable hashtable, Hashtable hashtable1, Hashtable hashtable2, Hashtable hashtable3, 
            boolean flag, boolean flag1)
    {
        if(dp1.c().equals(dp2.c()))
            return false;
        if(flag && hashtable1.containsKey(dp1) || !flag && hashtable3.containsKey(dp1.a()))
            return false;
        if(flag && hashtable.containsKey(dp1) || !flag && hashtable2.containsKey(dp1.a()))
            return false;
        if(b.b(dp1))
            return false;
        if(b.b(fh1, dp1))
            return false;
        return !flag1 || b.b(fh1, dp1, dp2);
    }
}